package com.example.cloud.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.Contact;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SwaggerConfig {
    
    @Bean
    public OpenAPI openAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("Cloud API 文档")
                        .description("Spring Boot 示例项目 API 文档")
                        .version("1.0.0")
                        .contact(new Contact()
                                .name("示例团队")
                                .email("example@example.com")));
    }
} 